﻿using FluentNHibernate.Mapping;
using HinduShop.Domain.Models.Account;

namespace HinduShop.DbClassLib.Mappings
{
    public class UserMap : ClassMap<User>
    {
        private UserMap()
        {
            Id(x => x.Id);
            Map(x => x.UserName);
            Map(x => x.ApplicationName);
            Map(x => x.Email);
            Map(x => x.Comment);
            Map(x => x.PasswordHash);
            Map(x => x.CreationDate);
            Map(x => x.Roles);
        }
    }
}